<?php
require_once('thumbnail/image.class.php');
$img = new Zubrag_image;

$img->max_x        = 100;
$img->max_y        = 100;

$img->GenerateThumbFile($dest, "$thumb_dir/$fileName");
